package com.woniu.stafforder.service;

import com.woniu.common.dto.OrderDetailDto;
import com.woniu.common.util.ResponseData;
import com.woniu.stafforder.dto.ChangeChildrenOrderStateDto;
import com.woniu.stafforder.entity.OrderDetail;
import com.baomidou.mybatisplus.extension.service.IService;

import java.math.BigDecimal;
import java.util.List;

/**
* @author Administrator
* @description 针对表【t_order_detail(订单详细)】的数据库操作Service
* @createDate 2024-05-25 12:08:30
*/
public interface OrderDetailService extends IService<OrderDetail> {

    OrderDetailDto queryOrderDetailById(Long id);

    /**
     * 批量修改子订单状态
     * @param idList
     * @return
     */
    Boolean updateChildrenOrderStatus(ChangeChildrenOrderStateDto changeChildrenOrderStateDto);

    ResponseData<?> queryPageDetail(Long orderNum);

    Long queryMainOrderNumByChildId(Long id);

    BigDecimal queryTotalPayMoneyById(List<Long> idList);
}
